<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<pre id="log"/>
<script><![CDATA[
    if (window.testRunner)
        testRunner.dumpAsText();

    function log(message) {
        document.getElementById("log").textContent += (message + "\n");
    }

    var div = document.createElement("div");
    div.innerHTML = "<i>This should be italic.</i>";
    log("Parsed element namespace: " + div.firstChild.namespaceURI);
    document.getElementsByTagName("body")[0].appendChild(div);
]]></script>
</body>
</html>
